xenpaging: make file_op largefile aware
authorOlaf Hering <olaf@aepfle.de>
Fri, 27 Jan 2012 19:03:37 +0000 (19:03 +0000)
committerOlaf Hering <olaf@aepfle.de>
Fri, 27 Jan 2012 19:03:37 +0000 (19:03 +0000)
commit7c4f9f61a2c98b3ae2cd5f898738368e1836fab2
treef7b1ef6ceadfe5aa5b6f551100ce08523cf804d2
parent3fb8faf59e30206d45977e2908c2032d6ec3b3f0
xenpaging: make file_op largefile aware

lseek() takes an off_t, the used "int << shiftsize" does not automatically
convert the int into a larger type. This leads to write errors with pagefiles
larger than 2G. Fix this by shifting an off_t instead of an int.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/xenpaging/file_ops.c